Optimal. Leaf size=85 \[ -\frac {8 c^2 \tan (e+f x) (a \sec (e+f x)+a)^2}{35 f \sqrt {c-c \sec (e+f x)}}-\frac {2 c \tan (e+f x) (a \sec (e+f x)+a)^2 \sqrt {c-c \sec (e+f x)}}{7 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.21, antiderivative size = 85, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 34, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.059, Rules used = {3955, 3953} \[ -\frac {8 c^2 \tan (e+f x) (a \sec (e+f x)+a)^2}{35 f \sqrt {c-c \sec (e+f x)}}-\frac {2 c \tan (e+f x) (a \sec (e+f x)+a)^2 \sqrt {c-c \sec (e+f x)}}{7 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3953
Rule 3955
Rubi steps
\begin {align*} \int \sec (e+f x) (a+a \sec (e+f x))^2 (c-c \sec (e+f x))^{3/2} \, dx &=-\frac {2 c (a+a \sec (e+f x))^2 \sqrt {c-c \sec (e+f x)} \tan (e+f x)}{7 f}+\frac {1}{7} (4 c) \int \sec (e+f x) (a+a \sec (e+f x))^2 \sqrt {c-c \sec (e+f x)} \, dx\\ &=-\frac {8 c^2 (a+a \sec (e+f x))^2 \tan (e+f x)}{35 f \sqrt {c-c \sec (e+f x)}}-\frac {2 c (a+a \sec (e+f x))^2 \sqrt {c-c \sec (e+f x)} \tan (e+f x)}{7 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.78, size = 66, normalized size = 0.78 \[ \frac {8 a^2 c \cos ^4\left (\frac {1}{2} (e+f x)\right ) (9 \cos (e+f x)-5) \cot \left (\frac {1}{2} (e+f x)\right ) \sec ^3(e+f x) \sqrt {c-c \sec (e+f x)}}{35 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.44, size = 105, normalized size = 1.24 \[ \frac {2 \, {\left (9 \, a^{2} c \cos \left (f x + e\right )^{4} + 22 \, a^{2} c \cos \left (f x + e\right )^{3} + 12 \, a^{2} c \cos \left (f x + e\right )^{2} - 6 \, a^{2} c \cos \left (f x + e\right ) - 5 \, a^{2} c\right )} \sqrt {\frac {c \cos \left (f x + e\right ) - c}{\cos \left (f x + e\right )}}}{35 \, f \cos \left (f x + e\right )^{3} \sin \left (f x + e\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 3.40, size = 60, normalized size = 0.71 \[ -\frac {16 \, \sqrt {2} {\left (7 \, {\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c\right )} c^{4} + 5 \, c^{5}\right )} a^{2}}{35 \, {\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c\right )}^{\frac {7}{2}} f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 1.58, size = 65, normalized size = 0.76 \[ -\frac {2 a^{2} \left (9 \cos \left (f x +e \right )-5\right ) \left (\sin ^{5}\left (f x +e \right )\right ) \left (\frac {c \left (-1+\cos \left (f x +e \right )\right )}{\cos \left (f x +e \right )}\right )^{\frac {3}{2}}}{35 f \left (-1+\cos \left (f x +e \right )\right )^{4} \cos \left (f x +e \right )^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 6.14, size = 384, normalized size = 4.52 \[ \frac {\sqrt {c-\frac {c}{\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}}{2}}}\,\left (\frac {a^2\,c\,2{}\mathrm {i}}{f}+\frac {a^2\,c\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,18{}\mathrm {i}}{35\,f}\right )}{{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-1}-\frac {\sqrt {c-\frac {c}{\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}}{2}}}\,\left (\frac {a^2\,c\,16{}\mathrm {i}}{7\,f}-\frac {a^2\,c\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,16{}\mathrm {i}}{7\,f}\right )}{\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-1\right )\,{\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}+1\right )}^3}-\frac {\sqrt {c-\frac {c}{\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}}{2}}}\,\left (\frac {a^2\,c\,4{}\mathrm {i}}{f}-\frac {a^2\,c\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,44{}\mathrm {i}}{35\,f}\right )}{\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-1\right )\,\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}+1\right )}+\frac {\sqrt {c-\frac {c}{\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}}{2}}}\,\left (\frac {a^2\,c\,24{}\mathrm {i}}{5\,f}-\frac {a^2\,c\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,72{}\mathrm {i}}{35\,f}\right )}{\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-1\right )\,{\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}+1\right )}^2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ a^{2} \left (\int c \sqrt {- c \sec {\left (e + f x \right )} + c} \sec {\left (e + f x \right )}\, dx + \int c \sqrt {- c \sec {\left (e + f x \right )} + c} \sec ^{2}{\left (e + f x \right )}\, dx + \int \left (- c \sqrt {- c \sec {\left (e + f x \right )} + c} \sec ^{3}{\left (e + f x \right )}\right )\, dx + \int \left (- c \sqrt {- c \sec {\left (e + f x \right )} + c} \sec ^{4}{\left (e + f x \right )}\right )\, dx\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________